﻿using Forum.Infrastructure;
using Forum.Infrastructure.Enum;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Forum.ForeignController
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    [ApiExplorerSettings(GroupName = nameof(ApiVersions.Foreign))]
    public class ToolController
    {
        /// <summary>
        /// 初始化数据
        /// </summary>
        [HttpGet]
        public void InitDatabase()
        {
            DbContext.InitDataBase();
        }
    }
}
